package router

import (
	"pig-manage/handler"

	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {
	r := gin.Default()

	r.POST("/user/login", handler.UserLogin)
	r.POST("/rode/nodeAdd", handler.RodeNodeAdd)
	r.GET("/user/rode", handler.UserRode)
	r.GET("/rode/node", handler.RodeNode)
	r.POST("/goods", handler.Goods)
	r.POST("/order", handler.Order)
	r.GET("/list", handler.GoodsOrder)

	return r
}
